[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MKADDR(IEXP1,IEXP2) (INTEGER)

 Function
  Create a complete address from a segment and offset.

 Syntax
  MKADDR(seg,off)

   seg = An integer expression with the segment portion of the address.
   off = An integer expression with the offset portion of the address.

 Return Type & Value
  INTEGER
  Returns an integer with the complete segment:offset based address.
  (the segment:offset address is a long integer built from two word
   sized values by the formula: (IEXP1*00010000h+IEXP2) )

 Remarks
  The POKE... statements and PEEK...() functions require full addresses to
  read from and write to memory.  Normally you will know the segment and
  the offset portions of the address but they will be separate.  Although
  not difficult to integrate together, this function automates the
  process.  The values returned can be calculated by the following
  formula:  seg*10000h+off.

 Examples
  PRINTLN "Ticks since midnight",PEEKDW(MKADDR(0040h,006Ch))

See Also: VARADDR VAROFF VARSEG
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson